<%@ page language="java" import="SiTuQingYou.vo.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
  <%
      String path = request.getContextPath();
   %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
#div0
{
height:30px;
background-color:#D4D4D4;
}
 #ulx>li
  {
   margin-left:10px;
  }
   .wel-grids
   {
   margin:0px auto;
    
    
   }
 .logo
 {
 width:200px;
 text-align:center;
 background-color:#ddd;
 margin-top:0px;
 }
 .logo span
 {
 font-size: 40px;
 font-family:monospace;

 }
 .logo span a
 {
  text-decoration: none;
 }
   .container
   {
    margin:0px auto;
   }
.other{float:right;width:130px;line-height:30px;text-align:right;padding-right:15px;}
</style>
</head>


<body>
  <%User user = (User)session.getAttribute("user");%>
  <div id="div0">
       <%
       if(user!=null)
         {%>
            <div class="login">
            	<div class="other"><a style="text-decoration: none;" href="<%=path%>/ExitLoginServlet?method=ExitLogin">退出</a></div>
            	<div class="other"><a style="text-decoration: none;"  href="<%=path%>/index/reviseinfo.jsp">密码修改</a></div> 
            	<div class="other"><a style="text-decoration: none;"  href="<%=path%>/index/collection.jsp">我收藏的攻略</a></div>
            	<div class="other"><a style="text-decoration: none;"  href="<%=path%>/index/mystrategy.jsp">我发表的攻略</a></div>
            	<div class="other"><a style="text-decoration: none;"  href="<%=path%>/index/comment.jsp">我的评论</a></div>
            	<div class="other"><a style="text-decoration: none;"  href="<%=path%>/index/shoppingcart.jsp">我的订单</a></div> 
                <div class="other">欢迎您，<%=user.getUsernickname() %></div>                                      
            </div>
         <%}
      else
         {%>
            <div class="login">
                 <div class="other"><a style="text-decoration: none;" href="<%=path %>/anotherLogReg/login.jsp">登录/注册</a></div>
            </div>
          <%} %>
  </div>


<div class="header">
				<div class="container">
					
						<div class="logo">
							 <span><a href="index.jsp">思途轻游</a></span> 
						</div>
						<div class="top-menu">
						
							<ul id="ulx">
								<li><a href="index.jsp" class="active">首页</a></li>
								<li><a href="<%=path%>/index/city.jsp">城市</a></li>
								<li><a href="<%=path%>/index/allscenes.jsp">景点</a></li>
								<li><a href="<%=path%>/index/guider.jsp">导游</a></li>
								<li><a href="<%=path%>/index/strategy.jsp">攻略</a></li> 
								<li><a href="<%=path%>/index/packagetour.jsp">跟团游</a></li>
								<div id="search">
	                                 <form action="<%=path %>/index/search.jsp">
		                                 <input type="text" style="background-color:#dddddd;margin-left:5px;" name="key">
		                                 <input type="submit" style="color:blue;" value="☚搜索">
	                                 </form>
                                </div>
							</ul>	
						</div>
			     </div>		
</div>	 
</body>
</html>